<style type="text/css">
    .sm-st {
        background: #fff;
        padding: 20px;
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        margin-bottom: 20px;
    }

    .sm-st-icon {
        width: 60px;
        height: 60px;
        display: inline-block;
        line-height: 60px;
        text-align: center;
        font-size: 30px;
        background: #eee;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
        float: left;
        margin-right: 10px;
        color: #fff;
    }

    .sm-st-info {
        padding-top: 2px;
    }

    .sm-st-info span {
        display: block;
        font-size: 24px;
        font-weight: 600;
    }

    .orange {
        background: #fa8564 !important;
    }

    .tar {
        background: #45cf95 !important;
    }

    .sm-st .green {
        background: #86ba41 !important;
    }

    .pink {
        background: #AC75F0 !important;
    }

    .yellow-b {
        background: #fdd752 !important;
    }

    .stat-elem {

        background-color: #fff;
        padding: 18px;
        border-radius: 40px;

    }

    .stat-info {
        text-align: center;
        background-color: #fff;
        border-radius: 5px;
        margin-top: -5px;
        padding: 8px;
        -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        font-style: italic;
    }

    .stat-icon {
        text-align: center;
        margin-bottom: 5px;
    }

    .st-red {
        background-color: #F05050;
    }

    .st-green {
        background-color: #27C24C;
    }

    .st-violet {
        background-color: #7266ba;
    }

    .st-blue {
        background-color: #23b7e5;
    }

    .st-yellow {
        background-color: #9E792E;
    }
    .st-yellow1 {
        background-color: #17b798;
    }
    .st-yellow2 {
        background-color: #00e765;
    }
    .col-sm-3 {
        width: 14%;
    }


    .grid-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); /* 自适应列 */
        gap:20px; /* 方格之间的间距 */
    }

    .grid-item {
        background: white;
        border-radius:8px;
        box-shadow:02px 6px rgba(0,0,0,0.1);
        padding:10px;
        text-align: center;
        transition: transform0.2s, box-shadow0.2s;
    }

    .grid-item:hover {
        transform: translateY(-5px);
        box-shadow:04px 12px rgba(0,0,0,0.15);
    }

    .grid-item h3 {
        margin:0010px;
        font-size:18px;
        color: #333;
    }

    .grid-item p {
        margin:0;
        font-size:14px;
        color: #777;
    }
    .box1 {
        border:2px solid #007BFF;
        width: 110%;
    }
</style>
<div class="panel panel-default panel-intro">
    {:build_heading(null, false)}
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">

                <div class="row">
                    <div class="col-sm-3 col-xs-6">
                        <div class="sm-st clearfix">
                            <span class="sm-st-icon st-red"><i class="fa fa-users"></i></span>
                            <div class="sm-st-info">
                                <span>{$all|htmlentities}</span>
                               全部
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3 col-xs-6">
                        <div class="sm-st clearfix">
                            <span class="sm-st-icon st-green"><i class="fa fa-clock-o"></i></span>
                            <div class="sm-st-info">
                                <span>{$leisure|htmlentities}</span>
                                空闲
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3 col-xs-6">
                        <div class="sm-st clearfix">
                            <span class="sm-st-icon st-violet"><i class="fa fa-clock-o"></i></span>
                            <div class="sm-st-info">
                                <span>{$sub_occupy|htmlentities}</span>
                                预约占用
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3 col-xs-6">
                        <div class="sm-st clearfix">
                            <span class="sm-st-icon st-blue"><i class="fa fa-clock-o"></i></span>
                            <div class="sm-st-info">
                                <span>{$other_occupy|htmlentities}</span>
                                其他占用
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3 col-xs-6">
                        <div class="sm-st clearfix">
                            <span class="sm-st-icon st-yellow"><i class="fa fa-clock-o"></i></span>
                            <div class="sm-st-info">
                                <span>{$wait_work|htmlentities}</span>
                                待上钟
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3 col-xs-6">
                        <div class="sm-st clearfix">
                            <span class="sm-st-icon st-yellow1"><i class="fa fa-clock-o"></i></span>
                            <div class="sm-st-info">
                                <span>{$in_service|htmlentities}</span>
                                服务中
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3 col-xs-6">
                        <div class="sm-st clearfix">
                            <span class="sm-st-icon st-yellow2"><i class="fa fa-clock-o"></i></span>
                            <div class="sm-st-info">
                                <span>{$timeout|htmlentities}</span>
                                超时
                            </div>
                        </div>
                    </div>

                </div>

                <div class="grid-container">
                    {foreach $staff_list as $index=>$vo}

                    <div class="grid-item box1">
                        <h4>昵称:{$vo.nickname}</h4>
                        <p>手机号:{$vo.mobile}</p>
                        <p>状态:{$vo.service_status_text}</p>
                        <p>上钟数:{$vo.num}</p>
                        {if $vo.work_end_time}
                        <span>下钟时间:{$vo.work_end_time|datetime}</span>
                        {/if}
                    </div>
                    {/foreach}
                </div>
            </div>

        </div>
    </div>
</div>